Portable mode¶
Normally SQLite Expert keeps your settings, your license key and the demo data in the standard Windows locations, well away from the folder the program is installed in. In portable mode it keeps all of them in that folder instead.
A copy set up this way carries its own configuration with it. It can live on a USB drive and run on any machine without keeping its settings in that machine's user profile, and two copies on the same machine keep entirely separate settings — which makes portable mode the straightforward way to try a different configuration without disturbing the one you use for real work.
Nothing in the Options dialog turns this on. It decides where the settings file is read from, so it has to be settled before there is a settings file to read, and it is settled by a small file you place next to the program.
The portable ZIP¶
The quickest way to a portable copy, and the only one on a computer where you are not allowed to run an installer, is the portable ZIP on the download page. There is one beside each installer, for both editions and both 32-bit and 64-bit Windows.
Unzip it to a folder you can write to, such as one in your documents or on a USB
drive, and run the executable inside. The ZIP is already set up: it holds the
.ini file described below, the demo data, and the help in a Help folder,
which Help → Contents opens. There is nothing else to do.
The executable and sqlite3.dll inside are signed by Coral Creek Software, and
each ZIP has a SHA-256 checksum on the download page.
Where the files normally live¶
<edition> is Professional or Personal and <bitness> is 32bit or
64bit, matching the copy you installed.
| What | Where |
|---|---|
| Your settings | %APPDATA%\SQLite Expert\<edition> 6 - <bitness>\Settings\Settings.json |
| Auto-saved editor contents | the same Settings folder |
| Your license key | %APPDATA%\SQLite Expert\<edition> 6 - <bitness>\License\ |
| Demo database and sample scripts | %ProgramData%\SQLite Expert\<edition> 6 - <bitness>\Data\ and …\Scripts\ |
In portable mode every one of those moves to the folder holding the executable,
keeping the same Settings\, License\, Data\ and Scripts\ subfolder names.
The help is separate from portable mode. The installers put it in
%ProgramData%\SQLite Expert\Help\6\, and Help → Contents opens a Help
folder beside the executable instead whenever there is one.
Turning portable mode on¶
To make a copy you already have portable, create a plain text file beside the executable, named after it with an .ini
extension, containing:
The name has to match the executable you actually start, so pick the row for the copy you have:
| Edition | Executable | File to create |
|---|---|---|
| Professional, 64-bit | SQLiteExpertPro64.exe |
SQLiteExpertPro64.ini |
| Professional, 32-bit | SQLiteExpertPro32.exe |
SQLiteExpertPro32.ini |
| Personal, 64-bit | SQLiteExpertPers64.exe |
SQLiteExpertPers64.ini |
| Personal, 32-bit | SQLiteExpertPers32.exe |
SQLiteExpertPers32.ini |
Start SQLite Expert. It writes its settings beside itself from then on.
Note
The setting is read once, as the program starts. Creating or changing the file while SQLite Expert is running has no effect until you restart it.
Making a copy that runs on its own¶
To move a working copy onto a USB drive or another machine:
- Copy the whole installation folder — the one holding the executable, which
also holds
sqlite3.dlland the other files the program needs to run. - Put the
.inifile described above into it. - If you want the demo database and the sample scripts as well, copy the
DataandScriptsfolders from%ProgramData%\SQLite Expert\<edition> 6 - <bitness>\into it too. Without them the program runs perfectly well; it simply has no demo data to open. For the help, copy%ProgramData%\SQLite Expert\Help\6\into it asHelp. - Register the copy as usual from Help → Register. The license key is stored
under
License\beside the executable, so it travels with the copy rather than staying on the machine you registered it on.
Things worth knowing¶
The folder has to be writable. A copy installed under Program Files cannot
write beside its own executable, so portable mode is for a copy you have unzipped
or copied somewhere of your own — a USB drive, or a folder in your documents.
A Professional trial records its start date on the machine. A copy that was
never installed — one unzipped from the portable ZIP — starts its 30-day trial
the first time it runs, and records that date under
HKEY_CURRENT_USER\Software\SQLite Expert\6.x. It is the one thing an
unregistered Professional copy writes outside its own folder. Where the installer
has already recorded a trial on the machine, that date is used instead. A copy
that is already registered when it starts records nothing, and neither does the
Personal Edition.
A portable copy starts fresh. When SQLite Expert 6 runs for the first time it normally looks for settings from an earlier version and carries them over. A portable copy deliberately does not: it is meant to be self-contained, so it starts on the defaults and nothing from the installed copy follows it.
Copies do not share anything. Each portable copy has its own settings file, and so does the ordinary installed one. A change made in one is invisible to the others, which is the point — but it also means a setting you were looking for may simply belong to the other copy.
Turning portable mode off¶
Delete the .ini file, or change the line to Portable=0, and restart. SQLite
Expert goes back to reading the settings in your user profile — the ones it was
using before you made the copy portable, unchanged.
The files written beside the executable are left where they are. Delete the
Settings, License, Data and Scripts folders there if you no longer want
them; nothing else refers to them.